﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace LiteFrame
{
    /// <summary>
    /// 业务逻辑执行结果类
    /// </summary>
    public class BOResponse
    {
        int _resNum;
        string _errMsg;
        DataSet _dsRes;
        public BOResponse (int res,string err,DataSet ds)
        {
            this._resNum = res;
            this._errMsg = err;
            this._dsRes = ds;
        }
        /// <summary>
        /// 返回值
        /// </summary>
        public int ResNum
        {
            get { return this._resNum; }
        }
        /// <summary>
        /// 错误信息，当返回值小于0时，则为不等于NULL的字符串
        /// </summary>
        public string ErrMessage
        {
            get { return this._errMsg; }
        }
        /// <summary>
        /// 返回查询数据集
        /// </summary>
        public DataSet DataSet
        {
            get { return this._dsRes; }
        }
    }
}
